package com.ruoyi.system.domain.vo;

import java.util.Date;
import java.util.List;

public class SysTagVo {

    private Integer id;        // 节点唯一ID
    private Integer pid;       // 父节点ID，根节点为NULL
    private String label;      // 节点名称/标签
    private String code;       // 编码路径
    private Date createTime;   // 创建时间
    private Date updateTime;   // 修改时间

    private List<SysTagVo> children;   // 子节点列表

    // Getter 和 Setter 方法

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysTag{" +
                "id=" + id +
                ", pid=" + pid +
                ", label='" + label + '\'' +
                ", code='" + code + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}